package thread.system12306;

public class Ticket {
    private String start;
    private String end;
    private Float price;

    public Ticket() {
    }

    public Ticket(String start, String end, Float price) {
        this.start = start;
        this.end = end;
        this.price = price;
    }

    public String toString(){
        StringBuilder builder = new StringBuilder("【");
        builder.append(this.start);
        builder.append("-->");
        builder.append(this.end);
        builder.append(":");
        builder.append(this.price);
        builder.append("】");
        return builder.toString();

    }

}
